package com.iuv.shortmsg.dto;

import java.time.LocalDateTime;

/**
 * SmsCodeInfo
 * 验证码实体类
 *
 * @author Will
 * @date 17:01
 */
public class SmsCodeInfo {
    /**
     * 手机号码
     */
    private String mobile;
    /**
     * 验证码
     */
    private String code;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    public SmsCodeInfo() {
    }
    public SmsCodeInfo(String mobile, String code) {
        this.mobile = mobile;
        this.code = code;
        this.createTime=LocalDateTime.now();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
